package com.ruoyi.erp.domain;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 外派结算对象 bill_settle
 * 
 * @author sauger
 * @date 2022-03-24
 */
@Data
public class BillSettle extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**  */
    private Integer id;

    /** 标题 */
    @Excel(name = "标题")
    private String title;

    /** 客户 */
    @Excel(name = "客户ID", type = Excel.Type.IMPORT)
    private Integer customerId;

    @Excel(name = "客户名称")
    private String customerName;

    /** 结算完成 */
    @Excel(name = "结算完成", dictType = "sys_yes_no")
    private String settleStatus;

    /** 发票金额 */
    @Excel(name = "发票金额")
    private BigDecimal invoiceValue;

    /** 发票号 */
    @Excel(name = "发票号")
    private String invoiceNumber;

    /** 开票日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开票日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date invoiceDate;

    /** 备注 */
    private String description;

    /**虚拟字段 */

    @Excel(name = "结算金额")
    private BigDecimal amount;

    @Excel(name = "已收金额")
    private BigDecimal payedAmount;

    private List<SettleMonthBill> monthBills;

    private List<SettlePo> settlePos;


}
